package com.zealsinger.nacos.learn.phonerepairfontbacken.domain.enums;


import com.zealsinger.nacos.learn.phonerepairfontbacken.exception.BaseExceptionInterface;
import lombok.AllArgsConstructor;
import lombok.Getter;
import org.springframework.http.HttpStatus;

/**
 * @author ZealSinger
 * @date 2025/09/12
 * @description 响应码枚举
 */

@AllArgsConstructor
@Getter
public enum ResponseCodeEnum implements BaseExceptionInterface {

    /**
     *
     */
    OK("200", HttpStatus.OK.getReasonPhrase()),

    /**
     * 系统错误
     */
    SYSTEM_ERROR("500","出错啦，请联系后台小哥，小哥要加班咯~"),

    /**
     * 参数错误
     */
    PARAM_ERROR("400","参数错误"),

    /**
     * 未登录
     */
    NOT_LOGIN("403","未登录"),

    /**
     * 权限不足
     */
    UNAUTHORIZED("401", "权限不足"),

    /**
     * 用户不存在
     */
    USER_NOT_EXIST("User-1000","用户不存在"),

    /**
     * 用户已存在
     */
    USER_EXIST("User-1001","用户已存在"),


    ;
    /**
     * 错误码
     */
    private final String errorCode;

    /**
     * 错误信息
     */
    private final String errorMessage;

}
